<cfparam name="template" default="">

<cfswitch expression="#template#">
	<cfcase value="formModalTemplate">
		<script id="formModalTemplate" type="text/x-kendo-tmpl">
			<div id="#= data.modalId#" class="modal hide formModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button class="btn btn-success saveButton" onclick="save('#= data.objType#', #= data.id#)">Save</button>
					<button class="btn btn-danger deleteButton" onclick="confirmDel('#= data.objType#', #= data.id#)">Delete</button>
					<button class="btn btn-success cancelButton" onclick="closeModal()">Cancel</button>
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="detailModalTemplate">
		<script id="detailModalTemplate" type="text/x-kendo-tmpl">
			<div id="#= data.modalId#" class="modal hide formModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button class="btn btn-success closeButton" onclick="closeModal()">Close</button>
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="confirmModalTemplate">
		<script id="confirmModalTemplate" type="text/x-kendo-tmpl">
			<div id="#= data.modalId#" class="modal hide confirmModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="span12">
								#= data.message#
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button class="btn btn-danger deleteButton" onclick="del('#= data.objType#', #= data.id#)">Delete</button>
					<button class="btn btn-success cancelButton" onclick="closeModal()">Cancel</button>
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="genericModalTemplate">
		<script id="genericModalTemplate" type="text/x-kendo-tmpl">
			<div id="#= data.modalId#" class="modal hide genericModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					# for (var i=0; i < data.buttons.length; i++) { #
						<button class="btn btn-#= data.buttons[i].type# #= data.buttons[i].class#">#= data.buttons[i].text#</buton>
					# } #
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="wizardModalTemplate">
		<script id="wizardModalTemplate" type="text/x-kendo-tmpl">
			<!--suppress HtmlUnknownTag -->
			<div id="#= data.modalId#" class="modal hide wizardModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<span class="modalAlert text-error" style="display: none;"></span>
					<button class="btn btn-success backButton">Back</button>
					<button class="btn btn-success nextButton">Next</button>
					<button class="btn btn-success finishButton">Finish</button>
					<button class="btn btn-success cancelButton">Cancel</button>
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="acceptModalTemplate">
		<script id="acceptModalTemplate" type="text/x-kendo-tmpl">
			<div id="#= data.modalId#" class="modal hide acceptModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<h3>#= data.modalTitle#</h3>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button class="btn btn-success acceptButton">Accept</button>
					<button class="btn btn-danger declineButton">Decline</button>
				</div>
			</div>
		</script>
	</cfcase>
	<cfcase value="alertModalTemplate">
		<!--- <script id="alertModalModalTemplate" type="text/x-kendo-tmpl">
			<div class="modal hide alertModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<a class="close btn" href="\#" data-dismiss="modal"><i class="icon-remove"></i></a>
					<h3>Alert</h3>
				</div>
				<div class="modal-body">#= message#</div>
				<div class="modal-footer">
					<button class="btn btn-success" data-dismiss="modal">Ok</button>
				</div>
			</div>
		</script> --->
		<!--- <script id="alertModalModalTemplate" type="text/x-kendo-tmpl">
			<div id="alertModal123" class="modal hide alertModal" aria-hidden="true" data-backdrop="static">
				<div class="modal-header">
					<a class="close btn" href="\#" data-dismiss="modal"><i class="icon-remove"></i></a>
					<h3>Alert</h3>
				</div>
				<div class="modal-body">#= message#</div>
				<div class="modal-footer">
					<button class="btn btn-success" data-dismiss="modal">Ok</button>
				</div>
			</div>
		</script> --->
	</cfcase>
	<cfdefaultcase>
		The requested modal template was not found
	</cfdefaultcase>
</cfswitch>
